import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home'
import Detail from '@/pages/Detail'
import Login from '@/pages/Login'
import ForgetPassword from '@/pages/ForgetPassword'
import Register from '@/pages/Register'
import Invite from '@/pages/Invite'
import Success from '@/pages/Success'
Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [
    {path: '/', name: 'Home', component: Home},
    {path: '/Detail', name: 'Detail', component: Detail},
    {path: '/Login', name: 'Login', component: Login},
    {path: '/ForgetPassword', name: 'ForgetPassword', component: ForgetPassword},
    {path: '/Register', name: 'Register', component: Register},
    {path: '/Invite', name: 'Invite', component: Invite},
    {path: '/Success', name: 'Success', component: Success},
  ]
})
